<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../baselist.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>修改用户</title>
	<script type="text/javascript" 
	src="${ctx}/staticfile/js/datepicker/WdatePicker.js"></script>
</head>

<body>
<form name="icform" method="post" >

<div id="menubar">
<div id="middleMenubar">
<div id="innerMenubar">
  <div id="navMenubar">
<ul>
	
	<li id="new"><a href="#" onclick="window.history.go(-1)">返回</a></li>
	<li id="new"><a href="#" onclick="formSubmit('update','_self');this.blur();">保存</a></li>
</ul>
  </div>
</div>
</div>
</div>
   
  <div class="textbox-title">
	<img src="../../staticfile/skin/default/images/icon/currency_yen.png"/>
    修改用户
  </div> 
  
<div>


<div class="eXtremeTable" >
<table id="ec_table" class="tableRegion" width="98%" >
	<tr class="odd">
		<td>用户名</td>
		<td><input type="text" name="userName" value="${user.userName}"/>
			<input type="hidden" name="olduId" value="${user.userId}"/>
		
		</td>
		<td>密码</td>
		<td><input type="text" name="password" value="${user.password}"/></td>
	</tr>
	
	<tr class="odd">
		<td>所属部门</td>
		<td>
		<select name="dept.deptId" style="width:121px;">
			<option value="${user.dept.deptId }">${user.dept.deptName}</option>
			<c:forEach items="${deptList}" var="d">
				<option value="${d.deptId}">${d.deptName}</option>
			</c:forEach>
		</select>
		</td>
		<td>真实姓名</td>
		<td><input type="text" name="userInfo.name" value="${user.userInfo.name}"/></td>
	</tr>
	
	<tr class="odd">
		<td>身份证号</td>
		<td><input type="text" name="userInfo.cardNo" value="${user.userInfo.cardNo}"/></td>
		<td>上级领导</td>
		<td><select name="userInfo.manager.userInfoId" style="width:121px;">
			<option value="${user.userInfo.manager.userInfoId }">${user.userInfo.manager.name }</option>
			<c:forEach items="${userList}" var="u">
				<option value="${u.userId}">${u.userInfo.name}</option>
			</c:forEach>
		</select>
		</td>
	</tr>
	
	<tr class="odd">
		<td>入职时间</td>
		<td><input type="text" style="width:90px;" name="userInfo.joinDate" value="<fmt:formatDate value='${user.userInfo.joinDate}' pattern='yyyy-MM-dd'/>"
	   		onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
		</td>
		<td>薪水</td>
		<td><input type="text" name="userInfo.salary" value="${user.userInfo.salary}"/></td>
	</tr>
	
	<tr class="odd">
		<td>生日</td>
		<td>
		<input type="text" style="width:90px;" name="userInfo.birthday" value="<fmt:formatDate value='${user.userInfo.birthday}' pattern='yyyy-MM-dd'/>"
	   		onclick="WdatePicker({el:this,isShowOthers:true,dateFmt:'yyyy-MM-dd'});"/>
		</td>
		<td>性别</td>
		<td>
		<c:if test="${user.userInfo.gender=='男' }">
		男<input type="radio" name="userInfo.gender" value="男" checked/>
		女<input type="radio" name="userInfo.gender" value="女" />
		</c:if>
		<c:if test="${user.userInfo.gender=='女' }">
		男<input type="radio" name="userInfo.gender" value="男" />
		女<input type="radio" name="userInfo.gender" value="女" checked/>
		</c:if>
		
		</td>
	</tr>
	<tr class="odd">
		<td>职位</td>
		<td><input type="text" name="userInfo.station" value="${user.userInfo.station }"/></td>
		<td>电话</td>
		<td><input type="text" name="userInfo.telephone" value="${user.userInfo.telephone}"/></td>
	</tr>
	
	<tr class="odd">
		<td>序号</td>
		<td><input type="text" name="userInfo.orderNo" value="${user.userInfo.orderNo}"/></td>
		<td>用户级别</td>
		<td>
		<select name="userInfo.userLevel" style="width:121px;">
			<c:if test="${user.userInfo.userLevel==1}"><option value="1">总经理</option>     </c:if>
			<c:if test="${user.userInfo.userLevel==2}"><option value="2">副总</option>     </c:if>
			<c:if test="${user.userInfo.userLevel==3}"><option value="3">部门经理</option>     </c:if>
			<c:if test="${user.userInfo.userLevel==4}"><option value="4">普通用户</option>     </c:if>
			
			<option value="1">总经理</option>
			<option value="2">副总</option>
			<option value="3">部门经理</option>
			<option value="4">普通用户</option>
		</select>
		</td>
	</tr>
	<tr class="odd">
		<td>备注信息</td>
		<td colspan="3"><textarea name="userInfo.remark" style="width:100%;height:120px" />${user.userInfo.remark}</textarea>
	</tr>
</table>
</div>
 
</div>
 
 
</form>
</body>
</html>

